package com.exchange.employee.service;

import com.exchange.employee.dto.AddArticleDto;
import com.exchange.employee.dto.EsQueryDto;
import com.exchange.employee.dto.UptArticleDto;
import com.exchange.utils.result.CommonResult;

import java.io.IOException;

/***
 *                    .::::.
 *                  .::::::::.
 *                 :::::::::::
 *             ..:::::::::::'
 *           '::::::::::::'
 *             .::::::::::
 *        '::::::::::::::..
 *             ..::::::::::::.
 *           ``::::::::::::::::
 *            ::::``:::::::::'        .:::.
 *           ::::'   ':::::'       .::::::::.
 *         .::::'      ::::     .:::::::'::::.
 *        .:::'       :::::  .:::::::::' ':::::.
 *       .::'        :::::.:::::::::'      ':::::.
 *      .::'         ::::::::::::::'         ``::::.
 *  ...:::           ::::::::::::'              ``::.
 * ```` ':.          ':::::::::'                  ::::..
 *                    '.:::::'                    ':'````..
 *
 * @Author liuhai
 * @Date 2020-12-25 09:33:10
 * @Description
 */
public interface ArticleService {

    /**
     * 查找文章集合
     * @param queryDto
     * @return
     */
    CommonResult getArticleList(EsQueryDto queryDto) throws IOException;

    /**
     * 新增文章
     * @param articleDto
     * @return
     */
    CommonResult addArticle(AddArticleDto articleDto);

    /**
     * 修改文章
     * @param articleDto
     * @return
     */
    CommonResult uptArticle(UptArticleDto articleDto);

    /**
     *
     * @param articleId
     * @return
     */
    CommonResult delArticle(Long articleId);
}
